package com.zhongyu.hellocloudgradeconsumer.hystrix;

import com.zhongyu.hellocloudgradeconsumer.service.GradeServiceFeign;
import com.zhongyu.pojo.Grade;
import org.springframework.stereotype.Component;

import java.awt.*;
import java.util.List;

@Component
public class GradeServiceHystrix implements GradeServiceFeign {
    @Override
    public List<Grade> getGrades() {
        System.out.println("========= 啦啦啦啦啦啦==============");
        return  null;
    }

    @Override
    public Grade getGradeById(Integer id) {
        Grade g=new Grade();
        g.setGradeName("========喓喓喓喓喓喓喓喓喓喓喓喓喓喓喓喓=============");
        return g;
    }
}
